@import '../global.less';

.el-select {
  position: relative;

  .el-input__inner {
    cursor: pointer;
  }

  .is-focus {
    .el-input__inner {
      border-color: @base-color;
    }
  }

  .el-select__caret {
    display: inline-block;
    font-size: 12px;
    color: @gray-color;
    vertical-align: middle;
    -webkit-transition: -webkit-transform .3s;
    transition: transform .3s;
  }

  .is-reverse {
    -webkit-transform: rotateZ(180deg);
    transform: rotateZ(180deg);
  }
}

.el-select-dropdown {
  position: absolute;
  z-index: 1001;
  margin: 3px 0;
  background-color: #fff;
  box-shadow: 0 3px 12px 0 rgba(0,0,0,.18);
}

.el-scrollbar {
  position: relative;
  overflow: hidden;
}

.el-select-dropdown__wrap {
  height: 100%;
  max-height: 275px;
  overflow: scroll;
}

.el-select-dropdown__item {
  position: relative;
  height: 30px;
  padding: 0 20px;
  line-height: 30px;
  font-size: @font-size;
  .ellipsis();
  color: @label-color;
  cursor: pointer;

  &:first-child {
    border-radius: 4px 4px 0 0;
  }

  &:last-child {
    border-radius: 0 0 4px 4px;
  }

  &.hover {
    background-color: @bg-color;
  }

  &.selected {
    color: #fff;
    background-color: @base-color;
  }

}

.el-select-dropdown__empty {
  padding: 10px;
  color: @gray-color;
  text-align: center;
}
